#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <assert.h>

char* my_strcpy(char* dest,const char* src)
{
	assert(dest && src);
	char* ret = dest;
	while (*dest++ = *src++)
	{
		;
	}
	return ret;
}

int main()
{
	char arr1[40] = "*****";
	char arr2[] = "abcdefg";
	printf("%s\n",my_strcpy(arr1, arr2));
	printf("%s\n", arr1);
	return 0;
}